<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:include page="template_header.jsp" />
<c:set var="balance" value="${balance}" />
<div class="span9">
	<!-- /write your content -->
	<jsp:include page="error-list.jsp" />


	<div class="page-header">
		<h3>Buy Fund</h3>

		<h5>Your balance is ${balance}</h5>
	</div>
	<form id="buyFundForm" class="form-horizonal" action="buyFund.do" method="post"
		accept-charset="utf-8">
		<div class="control-group">
			<label class="control-label" for="">Fund Name</label>
			<div class="controls">
				<select name="fundList">
					<c:forEach var="abc" items="${fundList}">
						<option value="${abc.id}">${abc.name}</option>
					</c:forEach>
				</select>
			</div>
			<input type="hidden" name="balance" value="${balance}" /> <label
				class="control-label" for="">Amount : </label>
			<div class="controls">
				<input class="input" type="text" name="amount" value="">
			</div>
		</div>
		<p>
			<button type="submit" class="btn" onclick="">Buy</button>
		</p>
	</form>
</div>
<!-- /end your content-->
<jsp:include page="template_tail.jsp" />